Fix display-buffer-override-next-command (bug#71654)
authorRodrigo Kassick <kassick@gmail.com>
Wed, 19 Jun 2024 21:04:08 +0000 (23:04 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Wed, 19 Jun 2024 21:27:49 +0000 (23:27 +0200)
commit374f4235d5e78def23d92b05f3d0257c1f609725
treebc0c02f74b62efbe3436fd349c36cee0f0f1fe84
parent499d5dd95818389c664a9f11c1fdd73de30c803f
Fix display-buffer-override-next-command (bug#71654)

* lisp/window.el (display-buffer-override-next-command):
display-buffer-overriding-action's car can be either a function or a
list of functions. When a function,
(push action (car display-buffer-overriding-action)) will create a
cons-cell (action . function) instead of a list. In the clear-fun
callback, trying to
(delq action (car display-buffer-overriding-action)) causes an
wrong-type-argument error.

Copyright-paperwork-exempt: yes
lisp/window.el